//
//  Album.m
//  Practice--Album
//
//  Created by 冀永金 on 16/7/20.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "Album.h"
#import "MyScrollView.h"
@interface Album ()<UIScrollViewDelegate>
@property (nonatomic, strong) MyScrollView *scr;
@end
@implementation Album
-(instancetype)initWithFrame:(CGRect)frame images:(NSArray<UIImage *> *)images {
    self = [super initWithFrame:frame];;
    if (self) {
        [self configWithFrame:frame images:images];
    }
    return self;
}
- (void)configWithFrame:(CGRect)frame images:(NSArray<UIImage *> *)images{
    
    self.scr = [[MyScrollView alloc]initWithFrame:self.bounds images:images];
    self.scr.maximumZoomScale = 2.0;
    [self addSubview:self.scr];
    
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
